{include file="public/head" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_home')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{$navModuleRs.title} {:lang('v_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{$navModuleRs.title} 品牌</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="w-100 mb-3">
                                    <form name="form_keyword" action="{:url('/brand/index',['lang'=>$lang,'tabledir'=>input('tabledir')])}" method="post" class="row">
                                        <input type="hidden" name="lang" value="{$lang}">
                                        <input type="hidden" name="tabledir" value="{:input('tabledir')}">
                                        <div class="col-md-8 px-2">
                                            <a class="btn btn-{if input('signid') neq 9}success{else /}default{/if} mb-2 mr-2" href="{:url('/brand/index',['lang'=>$lang,'tabledir'=>input('tabledir')])}"><i class="fa fa-fw fa-lightbulb mr-1"></i>品牌 {:lang('v_manage')}</a>
                                            <a class="btn mb-2 mr-2 {if input('signid') eq 9}btn-success{else /}btn-default{/if}" href="{:url('/brand/index',['lang'=>$lang,'signid'=>9,'tabledir'=>input('tabledir')])}"><i class="fa fa-fw fa-recycle mr-1"></i>{:lang('v_recycle')}</a>
                                            <a class="btn btn-default mb-2" href="{:url('/brand/edit',['lang'=>$lang,'tabledir'=>$tabledir])}"><i class="fa fa-fw fa-plus-circle mr-1"></i>{:lang('v_add')} 品牌</a>
                                        </div>
                                        <div class="col-md-4 px-2">
                                            <div class="input-group">
                                                <input name="keyword" placeholder="{:lang('v_quickfind')}" type="text" class="form-control">
                                                <span class="input-group-append">
                                                    <button type="submit" class="btn btn-success"><i class="fa fa-search mr-1"></i>{:lang('v_search')}</button>
                                                </span>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                <table class="table table-striped table-bordered table-hover">
                                    <form name="form_list" id="form_list" action="" method="post">
                                        <tr>
                                            <th width="100" class="text-center">ID</th>
                                            <th width="150">LOGO</th>
                                            <th>{:lang('v_title')}</th>
                                            <th width="150" class="text-center d-invisible">{:lang('v_sequence')}</th>
                                            <th width="280" class="text-center">{:lang('v_do')}</th>
                                        </tr>
                                        {volist name="list" id="rs"}
                                            <input type="hidden" name="id[]" value="{$rs.id}" />
                                            <tr id="tr_{$rs.id}">
                                                <td class="text-center">
                                                    <label class="form-check form-check-inline">
                                                        <input type="checkbox" name="selectid[]" id="selectid" value="{$rs.id}" class="mr-1" />
                                                        <span class="d-invisible">{$rs.id}</span>
                                                    </label>
                                                </td>
                                                <td>
                                                    <div style="max-height: 35px; overflow: hidden;">
                                                        <a href="/api/common/view.html?lang={$lang}&thumb={$rs.logo}" data-target="#modal" data-toggle="modal">
                                                            <img src="{$rs.logo}" width="70" onerror="this.src='{:config('template.skin')}/img/nopic.png'" />
                                                        </a>
                                                    </div>
                                                </td>
                                                <td>
                                                    <input name="title[]" type="text" value="{$rs.title}" class="input" />
                                                </td>
                                                <td class="text-center d-invisible">
                                                    <input name="sequence[]" type="text" value="{$rs.sequence}" class="input" size="5" />
                                                </td>
                                                <td class="text-center">
                                                    <a href="{:url('/brand/edit',['lang'=>$lang,'tabledir'=>$rs['tabledir'],'id'=>$rs['id']])}" class="btn btn-sm btn-success  mb-2 mr-2"><i class="fa fa-fw fa-edit mr-1"></i>{:lang('v_edit')}</a>
                                                    {switch signid}
                                                        {case 9}
                                                            <!-- 回收站 -->
                                                            <!-- 恢复 -->
                                                            <span onClick="javascript:do_ajax('','','{:url('/brand/update_signid',['lang'=>$lang,'signid'=>1,'id'=>$rs['id']])}','');" class="btn btn-sm btn-purple mb-2 mr-2"><i class="fa fa-fw fa-reply-all mr-1"></i>{:lang('v_restore')}</span>
                                                            <!-- 真实删除 -->
                                                            <span onClick="javascript:do_confirm('','','{:url('/brand/delete_one',['lang'=>$lang,'id'=>$rs['id'],'tabledir'=>$rs['tabledir']])}','','');" class="btn btn-sm btn-danger mb-2"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                        {/case}
                                                        {default /}
                                                            <!-- 软删除 -->
                                                            <span class="btn btn-sm btn-danger mb-2" onClick="javascript:do_ajax('','','{:url('/brand/update_signid',['lang'=>$lang,'signid'=>9,'id'=>$rs['id']])}','');"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                    {/switch}
                                                </td>
                                            </tr>
                                        {/volist}
                                        <tr>
                                            <td colspan="5">
                                                <div class="row">
                                                    <div class="col-xl-6 mt-2">
                                                        <div class="float-lg-left mr-4">{$list->render()|raw}</div>
                                                        <div class="float-lg-left mt-1">{:lang('v_total')} {$lastPage} {:lang('v_page')} {$total} {:lang('v_records')}</div>
                                                        <div class="clearfix"></div>
                                                    </div>
                                                    <div class="col-xl-6 mt-2 mt-md-1">
                                                        <div class="float-left float-xl-right">
                                                            <button type="button" class="btn btn-info mr-2 checkbox-toggle"><i class="far fa-fw fa-square mr-1"></i>{:lang('v_select_all')}</button>
                                                            <button type="button" class="btn btn-warning mr-2 d-invisible" onClick="javascript:do_ajax('#form_list','','{:url('/brand/update_all',['lang'=>$lang])}','');"><i class="fa fa-fw fa-sync-alt mr-1"></i>{:lang('v_batch')} {:lang('v_update')}</button>
                                                            {switch signid}
                                                                {case 9}
                                                                    <!-- 回收站 -->
                                                                    <!-- 恢复 -->
                                                                    <button type="button" class="btn btn-purple mr-2" onClick="javascript:do_ajax('#form_list','','{:url('/brand/updateall_signid',['lang'=>$lang,'signid'=>1])}','');"><i class="fa fa-fw fa-reply-all mr-1"></i>{:lang('v_restore_select')}</button>
                                                                    <!-- 真实删除 -->
                                                                    <button type="button" class="btn btn-danger" onClick="javascript:do_confirm('#form_list','','{:url('/brand/delete_all',['lang'=>$lang,'tabledir'=>$tabledir])}','','');"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                                {/case}
                                                                {default /}
                                                                    <!-- 软删除 -->
                                                                    <button type="button" class="btn btn-danger" onClick="javascript:do_ajax('#form_list','','{:url('/brand/updateall_signid',['lang'=>$lang,'signid'=>9])}','');"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                            {/switch}
                                                        </div>
                                                        <div class="clearfix"></div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </form>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
</body>
</html>